package com.heima.thread;

public class ThreadSleepText01 {
    public static void main(String[] args) throws InterruptedException {
//        System.out.println("睡觉了");
//        Thread.sleep(4000);
//        System.out.println("睡醒了");
        ThreadGetName01 T = new ThreadGetName01();
        Thread th1 = new Thread(T);
        Thread th2 = new Thread(T);
        th1.start();
        th2.start();
    }
}
